package com.lanlion.porlet.common;

/**
 * 企业付款到个人零钱返回消息实体
 */
@CommonEntityFileAnnotation(type = "class",name = "Pay2PersonFromCompanyEntity")
public class Pay2PersonFromView {

    //SUCCESS/FAIL
    //此字段是通信标识，非交易标识，交易是否成功需要查看result_code来判断
    @CommonEntityFileAnnotation(type = "String",name = "return_code")
    private String returnCode;

    //返回信息，如非空，为错误原因
    //签名失败
    //参数格式校验错误
    @CommonEntityFileAnnotation(type = "String",name = "return_msg")
    private String returnMsg;

    //申请商户号的appid或商户号绑定的appid（企业号corpid即为此appId）
    @CommonEntityFileAnnotation(type = "String",name = "mch_appid")
    private String mchAppid;

    //微信支付分配的商户号
    @CommonEntityFileAnnotation(type = "String",name = "mchid")
    private String mchid;

    //随机字符串，不长于32位
    @CommonEntityFileAnnotation(type = "String",name = "nonce_str")
    private String nonceStr;

    //SUCCESS/FAIL，注意：当状态为FAIL时，存在业务结果未明确的情况。如果如果状态为FAIL，请务必关注错误代码（err_code字段），
    // 通过查询查询接口确认此次付款的结果。
    @CommonEntityFileAnnotation(type = "String",name = "result_code")
    private String resultCode;

    //错误码信息，注意：出现未明确的错误码时（SYSTEMERROR等），请务必用原商户订单号重试，或通过查询接口确认此次付款的结果。
    @CommonEntityFileAnnotation(type = "String",name = "err_code")
    private String errCode;

    //结果信息描述
    @CommonEntityFileAnnotation(type = "String",name = "err_code_des")
    private String errCodeDes;

    //商户订单号，需保持历史全局唯一性(只能是字母或者数字，不能包含有其他字符)
    @CommonEntityFileAnnotation(type = "String",name = "partner_trade_no")
    private String partnerTradeNo;

    //企业付款成功，返回的微信付款单号
    @CommonEntityFileAnnotation(type = "String",name = "payment_no")
    private String paymentNo;

    //企业付款成功时间
    @CommonEntityFileAnnotation(type = "String",name = "payment_time")
    private String paymentTime;


    //商户号的appid
    @CommonEntityFileAnnotation(type = "String",name = "appid")
    private String appid;

    //调用企业付款API时，微信系统内部产生的单号
    @CommonEntityFileAnnotation(type = "String",name = "detail_id")
    private String detailId;

    //SUCCESS:转账成功  FAILED:转账失败  PROCESSING:处理中
    @CommonEntityFileAnnotation(type = "String",name = "status")
    private String status;

    //如果失败则有失败原因
    @CommonEntityFileAnnotation(type = "String",name = "reason")
    private String reason;

    //转账的openid
    @CommonEntityFileAnnotation(type = "String",name = "openid")
    private String openid;

    //收款用户姓名
    @CommonEntityFileAnnotation(type = "String",name = "transfer_name")
    private String transferName;

    //付款金额单位为“分”
    @CommonEntityFileAnnotation(type = "String",name = "payment_amount")
    private int paymentAmount;

    //发起转账的时间
    @CommonEntityFileAnnotation(type = "String",name = "transfer_time")
    private String transferTime;

    //企业付款备注
    @CommonEntityFileAnnotation(type = "String",name = "desc")
    private String desc;

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getTransferName() {
        return transferName;
    }

    public void setTransferName(String transferName) {
        this.transferName = transferName;
    }

    public int getPaymentAmount() {
        return paymentAmount;
    }

    public void setPaymentAmount(int paymentAmount) {
        this.paymentAmount = paymentAmount;
    }

    public String getTransferTime() {
        return transferTime;
    }

    public void setTransferTime(String transferTime) {
        this.transferTime = transferTime;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public String getMchAppid() {
        return mchAppid;
    }

    public void setMchAppid(String mchAppid) {
        this.mchAppid = mchAppid;
    }

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public String getResultCode() {
        return resultCode;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrCodeDes() {
        return errCodeDes;
    }

    public void setErrCodeDes(String errCodeDes) {
        this.errCodeDes = errCodeDes;
    }

    public String getPartnerTradeNo() {
        return partnerTradeNo;
    }

    public void setPartnerTradeNo(String partnerTradeNo) {
        this.partnerTradeNo = partnerTradeNo;
    }

    public String getPaymentNo() {
        return paymentNo;
    }

    public void setPaymentNo(String paymentNo) {
        this.paymentNo = paymentNo;
    }

    public String getPaymentTime() {
        return paymentTime;
    }

    public void setPaymentTime(String paymentTime) {
        this.paymentTime = paymentTime;
    }
}
